<?php /* Smarty version 2.6.18, created on 2016-12-28 00:13:40
         compiled from arrange/plan.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.left.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">学校每周工作安排</p>
				    <a href="index.php?a=arrange.planadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
					<a href="index.php?a=arrange.planoutdata&plan_week=<?php echo $this->_tpl_vars['plan_week']; ?>
" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-right:8px"> 导 出 </a>
                </div>
                <div class="box-body">
                   <div class="col-sm-4 form-group" >
						  <label for="inputPassword3" class="col-sm-3 text-right">
							   周次：
						  </label>
						  <div class="input-group col-md-4" style="float:left; margin-right:10px;">
							    <select class="form-control" name="plan_week">	
								<?php $_from = $this->_tpl_vars['week_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                     <option <?php if ($this->_tpl_vars['value']['plan_week'] == $this->_tpl_vars['plan_week']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['value']['plan_week']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>                                    
                                </select>
						  </div>
						  <input type="hidden" name="a" value="arrange.planlist">
                          <button class="btn btn-primary" type="submit">查询</button>
				    </div>
                    <div style="clear:both"></div>
					
				  <h4 class="text-center">学校<?php echo $this->_tpl_vars['semester_data']['semester_name']; ?>
第<?php echo $this->_tpl_vars['week_num']; ?>
周工作安排 </h4>
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr>
                                        <td width="80">星期</td>
                                        <td>日期</td>
										<td width="50%">主要内容</td>
										<td>负责部门</td>
										<td>备注</td> 										
                                    </tr>	
                                </thead>
                                <tbody>
								<?php $_from = $this->_tpl_vars['plan_lists']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
                                    <tr>
                                        <td><?php echo $this->_tpl_vars['value']['plan_day']; ?>
</td>
                                        <td><?php echo $this->_tpl_vars['value']['start_time']; ?>
</td>
										<td>
										<?php echo $this->_tpl_vars['value']['plan_content']; ?>
<br/>
										</td>
										<td>
										<?php $_from = $this->_tpl_vars['value']['department_name']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
										<?php echo $this->_tpl_vars['v']; ?>

										<?php endforeach; endif; unset($_from); ?>
										<?php echo $this->_tpl_vars['value']['plan_rests']; ?>

										</td>
										<td><?php echo $this->_tpl_vars['value']['plan_remark']; ?>
</td>
                                    </tr>	
                              <?php endforeach; endif; unset($_from); ?>     
                            </tbody>
                        </table>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
                          <a href="index.php?a=arrange.planupdate&plan_week=<?php echo $this->_tpl_vars['week_num']; ?>
&semester_id=<?php echo $this->_tpl_vars['semester_id']; ?>
" class="btn btn-warning">修 改</a>
                          <a href="index.php?a=arrange.plandel&plan_week=<?php echo $this->_tpl_vars['week_num']; ?>
&semester_id=<?php echo $this->_tpl_vars['semester_id']; ?>
" class="btn btn-danger">删 除</a>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
